





//--------------------start:发表反馈相关---------------------
//验证检查
function feedbackFormCheck(){
	var flag = true;
	if($('customerName')!=null){
		applyValidate($('customerName'),"maxlength=20,required,noHtml");
	}
	if($('contact')!=null){
		applyValidate($('contact'),"minlength=5,maxlength=100,required,noHtml");
	}
	applyValidate($('message'),"minlength=20,maxlength=500,required,noHtml");
	if(!validateForm($('addFeedbackForm'))){
		flag = false;
		alert(__vaMsg.notPass);
	}
	return flag;
}

//权限检查 
function feedbackRightCheck(){
	return true;
}

//发表反馈检查 
function addFeedback(){
	submitFeedback();
}
//提交咨询
var submitFlag = false;
function submitFeedback(){
	if(feedbackFormCheck() && !submitFlag){
		submitFlag = true;
		$('addFeedbackForm').submit();
	}
} 

//--------------------end:  发表反馈相关---------------------




